package com.tiny.work.biz;

import com.tiny.work.biz.entity.Test;
import com.tiny.work.biz.entity.TestExample;
import java.util.List;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;

public interface TestDao {

  @Transactional(isolation = Isolation.SERIALIZABLE)
  void saveAndupdate() throws InterruptedException;

  @Cacheable(key = "'name'", value = "default")
  List<Test> getTest(TestExample example);
}
